\hypertarget{classdb_major}{
\section{db\-Major \-Class \-Reference}
\label{classdb_major}\index{db\-Major@{db\-Major}}
}
\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classdb_major_a30cf5cb3cdda51535a642fad19ef4352}{get\-All\-Majors} ()
\item 
\hyperlink{classdb_major_a2855f7001f9c2c2ed6ce06ddf4225c57}{check\-Name} (\$m)
\item 
\hyperlink{classdb_major_a89573bcce91819694282ed35ab966c5c}{get\-Major} (\$major\-Name)
\item 
\hyperlink{classdb_major_a721775523535ed0810e9642a5c6a8903}{delete\-Major} (\$m)
\end{DoxyCompactItemize}
\subsection*{\-Static \-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
static \hyperlink{classdb_major_aea6c4d653e217f31256ded5783ed58f4}{create\-Table} ()
\item 
static \hyperlink{classdb_major_a778dd2d17ac654a06021a4bb761add65}{add\-Major} (\$m, \&\$id)
\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}
\-Communicates with the \hyperlink{class_contact}{\-Contact} control file to know which student data to get and set. \-It is the only file that has the \-S\-Q\-L queries and \-My\-S\-Q\-L connections

\begin{DoxyCopyright}{\-Copyright}
2011 by \-Dan, \-Steven, \-Brice, \-Mike, and \-Aaron. \-This program is part of \hyperlink{class_internship}{\-Internship} 2 \-Career, which is free software. \-It comes with absolutely no warranty. \-You can redistribute or modify it under the terms of the \-G\-N\-U \-General \-Public \-License as published by the \-Free \-Software \-Foundation (\-For more information, see $<$\href{http://www.gnu.org/licenses/}{\tt http\-://www.\-gnu.\-org/licenses/}).
\end{DoxyCopyright}
\begin{DoxyVersion}{\-Version}
\-February 6, 2011
\end{DoxyVersion}
\begin{DoxyAuthor}{\-Author}
\-Brice \-Rader and \-Aaron \-Jarzombeck \-This is the database file. \-It controls the major file to list all majors and to add or delete a major into the database. \-It is the only file that has the \-S\-Q\-L queries and \-My\-S\-Q\-L connections 
\end{DoxyAuthor}


\-Definition at line 26 of file db\-Major.\-php.



\subsection{\-Member \-Function \-Documentation}
\hypertarget{classdb_major_a778dd2d17ac654a06021a4bb761add65}{
\index{db\-Major@{db\-Major}!add\-Major@{add\-Major}}
\index{add\-Major@{add\-Major}!dbMajor@{db\-Major}}
\subsubsection[{add\-Major}]{\setlength{\rightskip}{0pt plus 5cm}static add\-Major (
\begin{DoxyParamCaption}
\item[{\$}]{m, }
\item[{\&\$}]{id}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{classdb_major_a778dd2d17ac654a06021a4bb761add65}
\-Adds major to database 
\begin{DoxyParams}[1]{\-Parameters}
major & {\em \$m} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
major 
\end{DoxyReturn}


\-Definition at line 84 of file db\-Major.\-php.

\hypertarget{classdb_major_a2855f7001f9c2c2ed6ce06ddf4225c57}{
\index{db\-Major@{db\-Major}!check\-Name@{check\-Name}}
\index{check\-Name@{check\-Name}!dbMajor@{db\-Major}}
\subsubsection[{check\-Name}]{\setlength{\rightskip}{0pt plus 5cm}check\-Name (
\begin{DoxyParamCaption}
\item[{\$}]{m}
\end{DoxyParamCaption}
)}}
\label{classdb_major_a2855f7001f9c2c2ed6ce06ddf4225c57}
\-Checks the majors in the database 
\begin{DoxyParams}[1]{\-Parameters}
major & {\em \$m} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
major 
\end{DoxyReturn}


\-Definition at line 112 of file db\-Major.\-php.

\hypertarget{classdb_major_aea6c4d653e217f31256ded5783ed58f4}{
\index{db\-Major@{db\-Major}!create\-Table@{create\-Table}}
\index{create\-Table@{create\-Table}!dbMajor@{db\-Major}}
\subsubsection[{create\-Table}]{\setlength{\rightskip}{0pt plus 5cm}static create\-Table (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{classdb_major_aea6c4d653e217f31256ded5783ed58f4}


\-Definition at line 30 of file db\-Major.\-php.

\hypertarget{classdb_major_a721775523535ed0810e9642a5c6a8903}{
\index{db\-Major@{db\-Major}!delete\-Major@{delete\-Major}}
\index{delete\-Major@{delete\-Major}!dbMajor@{db\-Major}}
\subsubsection[{delete\-Major}]{\setlength{\rightskip}{0pt plus 5cm}delete\-Major (
\begin{DoxyParamCaption}
\item[{\$}]{m}
\end{DoxyParamCaption}
)}}
\label{classdb_major_a721775523535ed0810e9642a5c6a8903}
\-Deletes major from database 
\begin{DoxyParams}[1]{\-Parameters}
major & {\em \$m} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
major in database 
\end{DoxyReturn}


\-Definition at line 151 of file db\-Major.\-php.

\hypertarget{classdb_major_a30cf5cb3cdda51535a642fad19ef4352}{
\index{db\-Major@{db\-Major}!get\-All\-Majors@{get\-All\-Majors}}
\index{get\-All\-Majors@{get\-All\-Majors}!dbMajor@{db\-Major}}
\subsubsection[{get\-All\-Majors}]{\setlength{\rightskip}{0pt plus 5cm}get\-All\-Majors (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classdb_major_a30cf5cb3cdda51535a642fad19ef4352}
\-Get's all of the majors in the database \begin{DoxyReturn}{\-Returns}
majors 
\end{DoxyReturn}


\-Definition at line 65 of file db\-Major.\-php.

\hypertarget{classdb_major_a89573bcce91819694282ed35ab966c5c}{
\index{db\-Major@{db\-Major}!get\-Major@{get\-Major}}
\index{get\-Major@{get\-Major}!dbMajor@{db\-Major}}
\subsubsection[{get\-Major}]{\setlength{\rightskip}{0pt plus 5cm}get\-Major (
\begin{DoxyParamCaption}
\item[{\$}]{major\-Name}
\end{DoxyParamCaption}
)}}
\label{classdb_major_a89573bcce91819694282ed35ab966c5c}
\-Gets the major that user calls 
\begin{DoxyParams}{\-Parameters}
{\em \$name} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
\hyperlink{class_major}{\-Major} 
\end{DoxyReturn}


\-Definition at line 134 of file db\-Major.\-php.



\-The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
\-C\-:/\-Users/\-Jon/\-Downloads/\-O\-O\-P/db-\/control/\hyperlink{db_major_8php}{db\-Major.\-php}\end{DoxyCompactItemize}
